<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./jquery.min.js"></script>
  <style>
    div {
      width: 200px;
      height: 200px;
      background-color: red;
      color: red;
    }
  </style>
</head>

<body>
  <div>困</div>
  <script>

    /*   $(function () {
        $(`div`).hide()
      }) */
    $('div').css('font-size', '40px')


    const div = document.querySelector('div')
    //转换jq对象为dom对象使用方法 ，两者不可以混合使用。转换的dom对象维数组小形式表现
    $('div')[0].style.color = 'pink'
    $('div').get(0).style.color = 'blue'

    //转换dom对象为jq对象
    // $('div').hide()
  </script>


</body>

</html>